package com.cobra.activiti.handler;


/**
 * @author yaobin
 * @date 2020/4/20 0020 14:43
 * @Description 异常处理
 */
public class GlobalException extends RuntimeException {


    private static final long serialVersionUID = 1L;

    /**
     * 异常代码
     */
    private GlobalExceptionCode code;

    public GlobalExceptionCode getCode() {
        return code;
    }

    public void setCode(GlobalExceptionCode code) {
        this.code = code;
    }

    public GlobalException(String message) {
        super(message);
    }

    public GlobalException(String message, GlobalExceptionCode code) {
        super(message);
        this.code = code;
    }

    public GlobalException(String message, Throwable cause) {
        super(message, cause);
    }

}
